package ottawa.testing.dao;

import java.util.List;

import org.hibernate.HibernateException;

public interface CoreHibernateDAO 
{

	public void salvarObjeto(Object entity)
		throws HibernateException;
	
	public void actualizarObjeto(Object entity)
		throws HibernateException;
	
	public void salvarOActualizarObjeto(Object entity)
		throws HibernateException;
	
	public void borrarObjeto(Object entity)
		throws HibernateException;
	
	public List listarObjeto(Class clazz)
		throws HibernateException;
	
	public Object obtenerObjeto(Class clazz, Long id)
		throws HibernateException;
	
}
